package com.xjoyt.pay.share.interfaces;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.xjoyt.pay.dto.ExecuteResult;
import com.xjoyt.pay.dto.PageParam;
import com.xjoyt.pay.dto.PageResult;
import com.xjoyt.pay.share.params.BankPageParam;
import com.xjoyt.pay.share.po.Bank;

/**
 * 行政区划接口
 * 
 * @author Administrator
 *
 */
public interface BankContract {

	/**
	 * 获取
	 * 
	 * @param id
	 * @return
	 */
	@RequestMapping("get/{id}")
	Bank get(@PathVariable("id") String id);

	/**
	 * 获取分页数据
	 * 
	 * @param param
	 * @return
	 */
	@RequestMapping(value = "loadPage", method = RequestMethod.POST)
	PageResult<Bank> loadPage(PageParam<BankPageParam> param);

	/**
	 * 保存
	 * 
	 * @param param
	 * @return
	 */
	@RequestMapping(value = "save", method = RequestMethod.POST)
	ExecuteResult<Bank> save(Bank param);

	/**
	 * 移除
	 * 
	 * @param id
	 * @return
	 */
	@RequestMapping("remove/{id}")
	ExecuteResult<?> remove(@PathVariable("id") String id);
}
